import httpFetch from "share/httpFetch";

export default {

  getAccountPeriodInfo(periodSetId, setOfBooksId) {
    return httpFetch.get(`/api/setOfBooks/query/head/dto?periodSetId=${periodSetId}&setOfBooksId=${setOfBooksId}`)
  },

  openPeriod(params) {
    return httpFetch.post(`/api/periods/open/periods`,params)
  },

  closePeriod(params) {
    return httpFetch.post(`/api/periods/close/periods?periodId=${params.periodIDs[0]}&periodSetId=${params.periodSetId}&setOfBooksId=${params.setOfBooksId}`)
  },

}
